# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-pdfium
pkgver=1.0.2
pkgrel=1
pkgdesc='Development library for pdf on Deepin'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/deepin-pdfium"
license=('LGPL3')
depends=('qt5-base' 'openjpeg2' 'libchardet' 'lcms2' 'libjpeg-turbo' 'icu' 'zlib' 'gcc-libs'
         'freetype2')
makedepends=('qt5-tools')
source=("https://github.com/linuxdeepin/deepin-pdfium/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('c3677b863c0225969c8b7897c88f4642607c79485f0facb29f6cb695597cd9568683b817e6670b19274b1d6642e15091baf6aa98c802c9f78272d5c19566fe37')

build() {
  cd deepin-pdfium-$pkgver
  qmake-qt5 PREFIX=/usr deepin-pdfium.pro 
}

package() {
  cd deepin-pdfium-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
